package com.yudean.esb.dao.mds;

import com.yudean.esb.domain.mds.MdsFlexValues;
import com.yudean.esb.mapper.mds.MdsFlexValuesMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository("mdsFlexValuesDao")
@Scope("prototype")
public class MdsFlexValuesDao {
    @Resource
    private MdsFlexValuesMapper mdsFlexValuesMapper;

    public List<MdsFlexValues> getMdsFlexValuesByTypeAndCompCode(String flexType, String compCode) {
        return mdsFlexValuesMapper.getMdsFlexValuesByTypeAndCompCode(flexType, compCode);
    }

    public List<MdsFlexValues> getMdsFlexValuesByTypeAndCompCodeAndDescription(String flexType, String compCode, String flexDescription) {
        return mdsFlexValuesMapper.getMdsFlexValuesByTypeAndCompCodeAndDescription(flexType, compCode, flexDescription);
    }
}

